using UnityEngine;
using System.Collections;

/// \class  gkDummyMovementComponent
/// \brief  Add an uniform movement to an object
[AddComponentMenu("GK/Engine/GameCore/Movement/gkDummyMovementComponent")]
public class gkDummyMovementComponent : MonoBehaviour
{
    public Vector3 Velocity = new Vector3(-1.0f,0,0);

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update() 
    {
        if (rigidbody == null)
        {
            transform.position += Time.deltaTime * Velocity;
        }
        else
        {
            rigidbody.velocity = Velocity;
        }
	}
}
